Cory Whitney (cory.whitney@uni-bonn.de)
Never have I ever:
Git is an open source version control tool, GitHub is a company that hosts Git repositories in the web and provides a web interface to interact with repos they host.
A better way to:
your local repository consists of three “trees” maintained by git. the first one is your Working Directory which holds the actual files. the second one is the Index which acts as a staging area and finally the HEAD which points to the last commit you've made.
Install Git & join Github (if you have not already):
install Git https://git-scm.com/downloads
join Github https://github.com/
Some useful tips on getting these running from our friends
University of Zurich http://www.geo.uzh.ch/microsite/reproducible_research/post/rr-rstudio-git/
Nathan Stephens, a very helpful R blogger https://support.rstudio.com/hc/en-us/articles/200532077-Version-Control-with-Git-and-SVN
GitHub
git reset --soft HEAD~1 or commit SHA
we undo our last commit, but the changes contained in that commit are not lost
git reset --hard HEAD~1 or commit SHA
we discard all changes we've made in the working directory
git stash
move the waiting changes out of the queue